// 基础服务地址
let CONFIG = {
  MAIN_SERVER: 'http://192.168.1.104:8080'
};
if (process.env.NODE_ENV === 'production') {
  let pXmlRequest;
  let pResponseData, ii, pItem;
  if (window.XMLHttpRequest) {
    pXmlRequest = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    pXmlRequest = new window.ActiveXObject();
  } else {
    alert('请升级至最新版本的浏览器');
  }
  if (pXmlRequest) {
    pXmlRequest.open('GET', 'config.json', false);
    pXmlRequest.send(null);
    if (pXmlRequest.status === 200 && pXmlRequest.responseText) {
      pResponseData = JSON.parse(pXmlRequest.responseText);
      CONFIG = pResponseData;
    }
  }
}
export default CONFIG;
